/*
 * Copyright 2021 ThoughtWorks, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
$border-color:        $border;
$border-color-active: #94399e;
$tab-border:          #f5f5f5;
$tab-head-color:      $dark-gray;
$tab-bg:              #e5e5e5;
$active-tab:          #94399e;

.v-tab {
  display: flex;
}

.v-tab_tab-head {
  margin:     0;
  padding:    0;
  float:      left;
  list-style: none;
  height:     32px;
  width:      250px;

  li {
    margin:        0;
    padding:       5px 10px;
    cursor:        pointer;
    color:         $tab-head-color;
    border-bottom: 0;
    overflow:      hidden;
    position:      relative;

    &:hover {
      color: #000;
    }

    &.active {
      border-right:     3px solid $border-color-active;
      background-color: #fff;
      color:            $active-tab;
      display:          block;
    }
  }
}

.hidden {
  display: none;
}

.v-tab_container {
  border-left: 1px solid $border-color;
  float:       left;
  width:       100%;
  min-height:  132px;
}

.v-tab_content {
  padding: 10px 20px;

  > :first-child {
    margin-top: 0;
  }
}
